moving from scratch to python